<template>

  <div  class="relative w-full h-full px-4 bg-light-400">
    <div class="absolute enter-x"> 
      <div class="absolute enter-x" style="color: white;font-size: 80px; left: 200px;top: 150px;">开启家具新时代</div>
      <div class="absolute enter-x " style="color: white;border: 2px solid #fff;border-radius: 20px;font-size: 30px; left: 200px;top: 300px;padding:0 20px;">创造美好生活，让每个家更美</div>
    <div class="box ">
        <div class="imgList">
            <img src="../../../assets/images/bgi1.jpg" alt="">
            <img src="../../../assets/images/bgi2.jpg" alt="">
            <img src="../../../assets/images/bgi3.jpg" alt="">
            <img src="../../../assets/images/bgi4.jpg" alt="">
            <img src="../../../assets/images/bgi5.jpg" alt="">
            <img src="../../../assets/images/bgi1.jpg" alt="">
        </div>
    </div>
    <div class="box">
        <div class="imgList2">
          <img src="../../../assets/images/bgi1.jpg" alt="">
            <img src="../../../assets/images/bgi2.jpg" alt="">
            <img src="../../../assets/images/bgi3.jpg" alt="">
            <img src="../../../assets/images/bgi4.jpg" alt="">
            <img src="../../../assets/images/bgi5.jpg" alt="">
            <img src="../../../assets/images/bgi1.jpg" alt="">
        </div>
    </div>
    <div class="box ">
        <div class="imgList3">
          <img src="../../../assets/images/bgi1.jpg" alt="">
            <img src="../../../assets/images/bgi2.jpg" alt="">
            <img src="../../../assets/images/bgi3.jpg" alt="">
            <img src="../../../assets/images/bgi4.jpg" alt="">
            <img src="../../../assets/images/bgi5.jpg" alt="">
            <img src="../../../assets/images/bgi1.jpg" alt="">
        </div>
    </div>
    </div>
    <!-- <div class="coverLogo"></div> -->
    <!-- <LoginLogo
     class="absolute  top-60 left-50 enter-x"    
      v-if="!sessionTimeout && showLocale" ></LoginLogo> -->
    <!-- <AppLocalePicker
      class="absolute text-white top-4 right-4 enter-x lg:text-gray-600"
      :showText="false"
      v-if="!sessionTimeout && showLocale"
    /> -->
    <!-- <AppDarkModeToggle class="absolute top-3 right-7 enter-x" v-if="!sessionTimeout" /> -->



    <div class="container relative h-full py-2 mx-auto">
      <div class="flex h-full">
        <div class="hidden min-h-full pl-4 mr-4 lg:flex lg:flex-col lg:w-13/24">
          <div class="my-auto" >
          </div>
        </div>
        <div class="flex w-full h-full py-5 lg:h-auto lg:py-0 lg:my-0 lg:w-11/24 overflow-auto">
          <div
            :class="`${prefixCls}-form`"
            class="relative w-full px-5 py-8 mx-auto my-auto rounded-xl shadow-md sm:px-8 lg:px-10 lg:py-9 lg:ml-16 sm:w-3/4 lg:w-2/4 lg:w-auto enter-x"
          >
          
            <LoginForm />
            <!-- <ForgetPasswordForm />
            <RegisterForm />
            <MobileForm />
            <QrCodeForm /> -->
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup>
  import { computed } from 'vue';
  import { AppLogo } from '/@/components/Application';
  import { AppLocalePicker, AppDarkModeToggle } from '/@/components/Application';
  import LoginForm from './LoginForm.vue';
  import ForgetPasswordForm from './ForgetPasswordForm.vue';
  import RegisterForm from './RegisterForm.vue';
  import MobileForm from './MobileForm.vue';
  import QrCodeForm from './QrCodeForm.vue';
  import { useGlobSetting } from '/@/hooks/setting';
  import { useDesign } from '/@/hooks/web/useDesign';
  import { useLocaleStore } from '/@/store/modules/locale';
  import LoginLogo from './LoginLogo.vue';

  defineProps({
    sessionTimeout: {
      type: Boolean,
    },
  });

  const globSetting = useGlobSetting();
  const { prefixCls } = useDesign('login');
  const localeStore = useLocaleStore();
  const showLocale = localeStore.getShowPicker;
  const title = computed(() => globSetting?.title ?? '');
</script>
<style lang="less">
  @prefix-cls: ~'jeesite-login';
  @logo-prefix-cls: ~'jeesite-app-logo';
  @countdown-prefix-cls: ~'jeesite-countdown-input';
  @dark-bg: #293146;

  html[data-theme='dark'] {
    .@{prefix-cls} {
      background-color: @dark-bg;

      &::before {
        background-image: url(/@/assets/svg/login-bg-dark.svg);
      }

      .ant-input,
      .ant-input-password {
        background-color: #232a3b;
      }

      .ant-btn:not(.ant-btn-link):not(.ant-btn-primary) {
        border: 1px solid #4a5569;
      }

      &-form {
        background: transparent !important;
        box-shadow: none;
      }

      .app-iconify {
        color: #fff;
      }
    }

    input.fix-auto-fill,
    .fix-auto-fill input {
      -webkit-text-fill-color: #c9d1d9 !important;
      box-shadow: inherit !important;
    }
  }

  .@{prefix-cls} {
    min-height: 100%;
    overflow: hidden;

    @media (max-width: @screen-lg) {
      background-color: #3f60b5;

      .@{prefix-cls}-form {
        box-shadow: none;
      }
    }

    &-form {
      top: -20px;
      margin: auto;
      background-color: #fff;
      box-shadow: 0 0 8px #ddd;
    }

    &::before {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      margin-left: -48%;
      background-image: url(/@/assets/svg/login-bg.svg);
      background-position: 100%;
      background-repeat: no-repeat;
      background-size: auto 100%;
      content: '';
      @media (max-width: @screen-lg) {
        display: none;
      }
    }

    .@{logo-prefix-cls} {
      // position: absolute;
      // top: 12px;
      // height: 30px;

      &.logo {
        margin-top: -110px;
        padding-bottom: 80px;
      }

      &__title {
        font-size: 16px;
        color: #eee;
      }

      img {
        width: 32px;
      }
    }

    .container {
      .@{logo-prefix-cls} {
        display: flex;
        width: 60%;
        height: 80px;

        &__title {
          font-size: 28px;
          color: #eee;
        }

        img {
          width: 48px;
        }
      }
    }

    &-sign-in-way {
      .anticon {
        font-size: 22px;
        color: #888;
        cursor: pointer;

        &:hover {
          color: @primary-color;
        }
      }
    }

    input:not([type='checkbox']) {
      min-width: 360px;

      @media (max-width: @screen-xl) {
        min-width: 320px;
      }

      @media (max-width: @screen-lg) {
        min-width: 260px;
      }

      @media (max-width: @screen-md) {
        min-width: 240px;
      }

      @media (max-width: @screen-sm) {
        min-width: 160px;
      }
    }

    .valid-code input {
      min-width: auto;
    }

    .@{countdown-prefix-cls} input {
      min-width: unset;
    }

    .ant-divider-inner-text {
      font-size: 12px;
      color: @text-color-secondary;
    }
  }
  .coverLogo{
    position: absolute;
    background-color: #fff;
    left: -10px;
    top: -10px;
    width: 100px;
    height: 100px;
    background-color: #fff;
    z-index: 999;
    background-color: #1D57CA;
  }
  * {
            margin: 0;
            padding: 0;
        }

        h1 {
            text-align: center;
        }

        .box {
            width: 200vh;
            height: 33.3vh;
            margin: 0 auto;
            overflow: hidden;
            background-color: #000;
            position: relative;
            
        }
        .imgList {
            animation:rolling 18s linear infinite;
            position: absolute;
            display: flex;
            margin-top: 10px;
        }
        .imgList2 {
            animation:rolling 15s linear infinite;
            position: absolute;
            display: flex;
            margin-top: 10px;
        }
        .imgList3 {
            animation:rolling 20s linear infinite;
            position: absolute;
            display: flex;
            margin-top: 10px;
        }

        img {
            height: 33.3vh;
            float: left;
            margin-right: 10px;
        }

        @keyframes rolling {
            from {
                transform: translateX(0);
            }

            to {
                transform: translateX(-50%);
            }
        }
</style>
